using RestSharp;
using SpecFlowDemo.Specs.Support.Drivers;
using System.Threading.Tasks;
using TechTalk.SpecFlow;

namespace SpecFlowDemo.Specs.StepDefinitions
{
    [Binding]
    public sealed class CreateOrderStepDefinitions
    {
        private readonly HttpClientDriver _httpClientDriver;

        public CreateOrderStepDefinitions(HttpClientDriver httpClientDriver)
        {
            _httpClientDriver = httpClientDriver;
        }

        [Given(@"i want to create order for my computer")]
        public void GivenIWantToCreateOrderForMyComputer()
        {
            _httpClientDriver.TestSSS = "40";
        }

        [When(@"open website and create a order")]
        public async Task WhenOpenWebsiteAndCreateAOrder()
        {
            await _httpClientDriver.Get("WeatherForecast");
        }

        [Then(@"i can see a order detail")]
        public void ThenICanSeeAOrderDetail()
        {

        }
    }
}